package org.example.bookstore.util;

import java.util.Random;

public class VerificationUtils {
    public static String randomForVerificationCode(){
        String str = "0123456789";
        StringBuilder verificationCode = new StringBuilder(4);
        for (int i = 0; i<6;i++){
            char ch = str.charAt(new Random().nextInt(str.length()));
            verificationCode.append(ch);
        }
        return verificationCode.toString();
    }
}
